import request from '@/config/axios'


// B 站UP主信息 API
export const DashboardApi = {
  // 获取UP类型比例
  getUpRatio: async () => {
    return await request.get({ url: `/bilibili/dashboard/up-ratio` })
  },

  // 获取UP粉丝排行榜
  getUpFansRank: async () => {
    return await request.get({ url: `/bilibili/dashboard/up-fans-rank` })
  },
  // 获取UP粉丝排行榜
  getUpStartRank: async () => {
    return await request.get({ url: `/bilibili/dashboard/up-start-rank` })
  },

  // 获取视频播放量排行榜
  getVideoViewRank: async (params: any) => {
    return await request.get({ url: `/bilibili/dashboard/video-start-rank`, params })
  },

}
